// 获取 cookie
function getCookie(_name){
	var str = document.cookie;
	var arr = str.split("; ");
	var l = arr.length;
	var i = 0;
	var col;
	for(; i<l ; i++){
		col = arr[i].split("=");
		if( col[0] == _name ){
			return decodeURIComponent(col[1]);
		}
	}
	return "";
}
// 设置 cookie
function setCookie(_name, _value, _date){
	var d=new Date();
	d.setDate(d.getDate()+_date);
	document.cookie = _name+"="+encodeURIComponent(_value)+"; path=/; expires="+d.toGMTString();
}
//
// function removeCookie(name) {
//      setCookie(name, '1', -1);
//  }